<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<meta http-equiv="Cache-Control" content="no-cache" />
		<meta http-equiv="Expires" content="0" />
		<title>覆盖延伸-已处理任务</title>
		<link rel="stylesheet" type="text/css" href="../js/ext-3.0.3/resources/css/ext-all.css" />
		<link rel="stylesheet" type="text/css" href="../css/fgyslist.css" />
		<script type="text/javascript" src="../js/ext-3.0.3/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="../js/ext-3.0.3/ext-all.js"></script>
		<script type="text/javascript" src="../js/ext-3.0.3/source/locale/ext-lang-zh_CN.js"></script>
		<script type="text/javascript" src="../scripts/hxcy/hxcy-util.js"></script>
		<script type="text/javascript" src="../scripts/hxcy/hxcy-cmp.js"></script>
		
		<script type="text/javascript" src="../fgys/s/gridToExcel.js"></script>
		<style type="text/css">
			.xls { 
			    background-image: url('../scripts/hxcy/images/xls.gif') !important; 
			    background-repeat: no-repeat; 
			}
		</style>
		<script type="text/javascript"><!--
			var fgysMenu = new Ext.menu.Menu({
					id: "fgys-menu-export",
					listeners : {
						click : function() {
							this.hide();
						}
					},
					items: [{
						text: '导出当前页',
						iconCls:'xls',
					    handler: function() {
					        var vExportContent = grid.getExcelXml();
					        if (Ext.isIE6 || Ext.isIE7 || Ext.isIE8 || Ext.isSafari || Ext.isSafari2 || Ext.isSafari3) {
					            var fd=Ext.get('frmDummy');
					            if (!fd) {
					                fd=Ext.DomHelper.append(Ext.getBody(),{tag:'form',method:'post',id:'frmDummy',action:'exportexcel.jsp', target:'_blank',name:'frmDummy',cls:'x-hidden',cn:[
					                    {tag:'input',name:'exportContent',id:'exportContent',type:'hidden'}
					                ]},true);
					            }
					            fd.child('#exportContent').set({value:vExportContent});
					            fd.dom.submit();
					        } else {
					            document.location = 'data:application/vnd.ms-excel;base64,'+Base64.encode(vExportContent);
					    }}
					},{
						text: '导出所有',
						iconCls:'xls',
						handler: function(){
							window.open("../room/roomProject!doExport.action");
						}
					}]
				})	
			var gridStore = new Ext.data.Store({
				proxy: new Ext.data.HttpProxy({
					url: "../room/roomProject.action",
					method: "POST"
				}),
				reader: new Ext.data.JsonReader({
					fields: ["id", "bizNumber", "name", "address","telphone","lon","lat","siteNumber","siteName",
								"newCreate","relatedCode","mainSignal","liftSignal","liftNumber","liftTopFloor","underParkSignal",
								"underParkNumber","underParkCarNumber","resolveMethod","coverArea","emergencyLevel","netType",
								"resolveContent","buildType","gsmSiteNumber","gsmBuildType","gsmBsc","gsmTerm","tdSiteNumber",
								"tdBuildType","tdRnc","tdTerm","wlanSiteNumber","wlanBuildType","wlanAc","wlanTerm","lteSiteNumber",
								"lteBuildType","lteBsc","lteTerm","repeaterMaterial","repeaterBuildCost","repeaterBuildFactory",
								"horsePowerSuit","repeaterBudgetTotal","zywNumber","practicalEarly","siteAddress",
								"needCivil","civilCost","civilBuildUnit","bodycareType","bodycareFactory","bodycareCost","newTransfer",
								"workMenuNumberOne","workMenuNumberTwo","addressCode","investDispatchOrder","transferProjectName",
								"transferProjectNumber","transferMisNumber","transferProjectBelong","transferBuildScale","transferBudget","transferOwnerMaterial",
								"transferMaterial","allTransferMaterialCost","wirePileLineNumber","wireDeviceNumber","wireLineMisCode",
								"wireDeviceMisCode","transferMaterialCost","fgysBuildConst","fgysBudgetTotal","fgysBuildUnit","itemFinishedTime",
								"transferDesigner","transferConstructionUnit","transferSupervisorUnit","transferStartDate","transferPlanCompleteDate",
								"transferStartApplyDate","transferRemark","investBelong","civilInvestBelong","bodycareInvestBelong","fgysInvestBelong",
								"repeaterInvestBelong","costBelong","replyDate","fgysMisCode","repeaterMisCode","horsePowerMisCode","areaId","areaType","projectType"], 
					root: "rows", 
					id: "id",
					totalProperty: "total"
				})
			});
			
			var recordStart = 0;
			var grid = new Ext.grid.GridPanel({
				id: "grid",
				region: "center",
				autoScroll: true,
				margins: "4, 4, 4, 4",
				stripeRows: true,
				enableColumnHide: true,
				columnLines :true,//增加表格竖线
				store: gridStore,
				loadMask: true,
				sm:new Ext.grid.RowSelectionModel({singeSelect:true}),
				columns: [
					new　Ext.grid.RowNumberer({
						header: "序号",
						width: 40,
						renderer: function(value, metaData, record, rowIndex) {
							return　recordStart + 1　+　rowIndex;
						}
					}), {
						header: "项目编号",
						dataIndex: "bizNumber",
						sortable: true,
						align: "center",
						width:140
					}, {
						header: "项目名称",
						dataIndex: "name",
						align: "center",
						width:140
					}, {
						header: "地址",
						dataIndex: "address",
						align: "center",
						width:200
					}, {
						header:"联系电话",
						dataIndex:"telphone",
						align: "center"
					},{
						header:"所属区域",
						dataIndex:"areaId",
						align:"center",
						renderer:function(value,cellmeta,record,rowIndex,columnIndex,store){
							switch(value){
								case '2' : return "西湖"; break
								case '3' : return "江干"; break
								case '4' : return "武林"; break
								case '5' : return "拱墅"; break
								case '6' : return "滨江"; break
								case '7' : return "下沙"; break
								case '8' : return "余杭"; break
								case '9' : return "富阳"; break
								case '10' : return "萧山"; break
								case '11' : return "桐庐"; break
								case '12' : return "建德"; break
								case '13' : return "淳安"; break
								case '14' : return "临安"; break
								default : return "";
							}
						}
					},{
						header:"区域性质",
						dataIndex:"areaType",
						align:"center",
						renderer:function(value,cellmeta,record,rowIndex,columnIndex,store){
							switch(value){
								case '26' : return "普通小高层小区"; break
								case '27' : return "高档小高层小区"; break
								case '28' : return "普通高层小区"; break
								case '29' : return "高档高层小区"; break
								case '30' : return "大型商场"; break
								case '31' : return "中型商场"; break
								case '32' : return "小型商场"; break
								case '33' : return "室外商业街区"; break
								default : return "";
							}
						}
					},{
						header:"项目分类",
						dataIndex:"projectType",
						align:"center",
						renderer:function(value,cellmeta,record,rowIndex,columnIndex,store){
							switch(value){
								case '16' : return "解决VIP投诉"; break
								case '17' : return "新区跟进"; break
								case '18' : return "话务吸收"; break
								case '19' : return "深度覆盖"; break
								case '20' : return "解决普通投诉"; break
								case '21' : return "解决弱覆盖"; break
								case '22' : return "解决质差问题"; break
								case '23' : return "道路覆盖"; break
								case '24' : return "解决高层投诉"; break
								default : return "";
							}
						}
					},{
						header:"经度",
						dataIndex:"lon",
						align: "center"
					},{
						header:"纬度",
						dataIndex:"lat",
						align: "center"
					},{
						header:"站号",
						dataIndex:"siteNumber",
						sortable: true,
						align: "center"
					},{
						header:"站名",
						dataIndex:"siteName",
						align: "center"
					},{
						header:"是否新建",
						dataIndex:"newCreate",
						align: "center"
					},{
						header:"关联编码",
						dataIndex:"relatedCode",
						align: "center"
					},{
						header:"主体信号",
						dataIndex:"mainSignal",
						align: "center"
					},{
						header:"电梯信号",
						dataIndex:"liftSignal",
						align: "center"
					},{
						header:"电梯数量",
						dataIndex:"liftNumber",
						sortable: true,
						align: "center"
					},{
						header:"电梯最高层数",
						dataIndex:"liftTopFloor",
						align: "center"
					},{
						header:"地下车库信号",
						dataIndex:"underParkSignal",
						align: "center"
					},{
						header:"独立地下车库数量",
						dataIndex:"underParkNumber",
						align: "center",
						width:120
					},{
						header:"地下车库车位数量",
						dataIndex:"underParkCarNumber",
						align: "center",
						width:120
					},{
						header:"解决手段",
						dataIndex:"resolveMethod",
						align:"center"
					},{
						header:"预计覆盖面积(m²)",
						dataIndex:"coverArea",
						sortable: true,
						align:"center",
						width:120
					},{
						header:"紧急程度",
						dataIndex:"emergencyLevel",
						align:"center"
					},{
						header:"网络类型",
						dataIndex:"netType",
						sortable: true,
						align:"center"
					},{
						header:"解决内容",
						dataIndex:"resolveContent",
						align:"center"
					},{
						header:"建设类型",
						dataIndex:"buildType",
						align:"center"
					},{
						header:"GSM站号",
						dataIndex:"gsmSiteNumber",
						align:"center"
					},{
						header:"GSM建设类型",
						dataIndex:"gsmBuildType",
						align:"center"
					},{
						header:"GSM-BSC",
						dataIndex:"gsmBsc",
						align:"center"
					},{
						header:"GSM期数",
						dataIndex:"gsmTerm",
						align:"center"
					},{
						header:"TD站号",
						dataIndex:"tdSiteNumber",
						align:"center"
					},{
						header:"TD建设类型",
						dataIndex:"tdBuildType",
						align:"center"
					},{
						header:"TD-RNC",
						dataIndex:"tdRnc",
						align:"center"
					},{
						header:"TD期数",
						dataIndex:"tdTerm",
						align:"center"
					},{
						header:"WLAN站号",
						dataIndex:"wlanSiteNumber",
						align:"center"
					},{
						header:"WLAN建设类型",
						dataIndex:"wlanBuildType",
						align:"center"
					},{
						header:"WLAN-AC",
						dataIndex:"wlanAc",
						align:"center"
					},{
						header:"WLAN期数",
						dataIndex:"wlanTerm",
						align:"center"
					},{
						header:"LTE站号",
						dataIndex:"lteSiteNumber",
						align:"center"
					},{
						header:"LTE建设类型",
						dataIndex:"lteBuildType",
						align:"center"
					},{
						header:"LTE-BSC",
						dataIndex:"lteBsc",
						align:"center"
					},{
						header:"LTE期数",
						dataIndex:"lteTerm",
						align:"center"
					},{
						header:"直放站材料",
						dataIndex:"repeaterMaterial",
						align:"center"
					},{
						header:"直放站施工费用",
						dataIndex:"repeaterBuildCost",
						sortable: true,
						align:"center"
					},{
						header:"直放站施工厂家",
						dataIndex:"repeaterBuildFactory",
						align:"center"
					},{
						header:"动力配套",
						dataIndex:"horsePowerSuit",
						align:"center"
					},{
						header:"直放站预算总金额",
						dataIndex:"repeaterBudgetTotal",
						sortable: true,
						align:"center",
						width:120
					},{
						header:"开工申请",
						dataIndex:"zywNumber",
						align:"center"
					},{
						header:"前期落实",
						dataIndex:"practicalEarly",
						align:"center",
						renderer:function(value,cell,record,rowIndex,columnIndex,store){
							if(value=="true"){
								return "是";
							}else{
								return "否"
							}
						}
					},{
						header:"基站地址",
						dataIndex:"siteAddress",
						align:"center"
					},{
						header:"是否土建",
						dataIndex:"needCivil",
						align:"center",
						renderer:function(value,cell,record,rowIndex,columnIndex,store){
							if(value=="true"){
								return "是";
							}else{
								return "否"
							}
						}
					},{
						header:"土建费用",
						dataIndex:"civilCost",
						sortable: true,
						align:"center"
					},{
						header:"土建施工单位",
						dataIndex:"civilBuildUnit",
						align:"center"
					},{
						header:"美化体类型",
						dataIndex:"bodycareType",
						align:"center"
					},{
						header:"美化体施工单位",
						dataIndex:"bodycareFactory",
						align:"center"
					},{
						header:"美化体费用",
						dataIndex:"bodycareCost",
						sortable: true,
						align:"center"
					},{
						header:"传输是否新建",
						dataIndex:"newTransfer",
						align:"center",
						renderer:function(value,cell,record,rowIndex,columnIndex,store){
							if(value=="true"){
								return "是";
							}else{
								return "否"
							}
						}
					},{
						header:"工单号一",
						dataIndex:"workMenuNumberOne",
						sortable: true,
						align:"center"
					},{
						header:"工单号二",
						dataIndex:"workMenuNumberTwo",
						sortable: true,
						align:"center"
					},{
						header:"地址编码",
						dataIndex:"addressCode",
						sortable: true,
						align:"center"
					},{
						header:"投资派工单编号",
						dataIndex:"investDispatchOrder",
						sortable: true,
						align:"center"
					},{
						header:"传输项目名称",
						dataIndex:"transferProjectName",
						align:"center"
					},{
						header:"传输项目编号",
						dataIndex:"transferProjectNumber",
						sortable: true,
						align:"center"
					},{
						header:"传输MIS编号",
						dataIndex:"transferMisNumber",
						sortable: true,
						align:"center"
					},{
						header:"传输项目归属",
						dataIndex:"transferProjectBelong",
						align:"center"
					},{
						header:"传输建设规模",
						dataIndex:"transferBuildScale",
						align:"center"
					},{
						header:"传输费用预算",
						dataIndex:"transferBudget",
						sortable: true,
						align:"center"
					},{
						header:"传输开工申请-甲供材料",
						dataIndex:"transferOwnerMaterial",
						align:"center",
						width:140
					},{	
						header:"开工申请-甲供材料",
						dataIndex:"transferMaterial",
						align:"center",
						width:130
					},{
						header:"所有甲供材料费用",
						dataIndex:"allTransferMaterialCost",
						sortable: true,
						align:"center",
						width:130
					},{
						header:"有线管线项目编号",
						dataIndex:"wirePileLineNumber",
						sortable: true,
						align:"center",
						width:130
					},{
						header:"有线设备项目编号",
						dataIndex:"wireDeviceNumber",
						sortable: true,
						align:"center",
						width:130
					},{
						header:"有线管线MIS号",
						dataIndex:"wireLineMisCode",
						sortable: true,
						align:"center"
					},{
						header:"有线设备MIS号",
						dataIndex:"wireDeviceMisCode",
						sortable: true,
						align:"center"
					},{
						header:"甲供材料费用",
						dataIndex:"transferMaterialCost",
						sortable: true,
						align:"center"
					},{
						header:"覆盖延伸施工费用",
						dataIndex:"fgysBuildConst",
						sortable: true,
						align:"center",
						width:130
					},{
						header:"覆盖延伸预算总金额",
						dataIndex:"fgysBudgetTotal",
						sortable: true,
						align:"center",
						width:130
					},{
						header:"覆盖延伸施工单位",
						dataIndex:"fgysBuildUnit",
						align:"center",
						width:120
					},{
						header:"项目完成时间",
						dataIndex:"itemFinishedTime",
						align:"center",
						sortable: true
					},{
						header:"设计人员",
						dataIndex:"transferDesigner",
						align:"center"
					},{
						header:"传输施工单位",
						dataIndex:"transferConstructionUnit",
						align:"center"
					},{
						header:"监理单位",
						dataIndex:"transferSupervisorUnit",
						align:"center"
					},{
						header:"传输开工时间",
						dataIndex:"transferStartDate",
						align:"center",
						sortable: true
					},{
						header:"传输预计竣工时间",
						dataIndex:"transferPlanCompleteDate",
						sortable: true,
						align:"center",
						width:130
					},{
						header:"传输开工申请时间",
						dataIndex:"transferStartApplyDate",
						sortable: true,
						align:"center",
						width:130
					},{
						header:"传输备注",
						dataIndex:"transferRemark",
						align:"center"
					},{
						header:"投资归属",
						dataIndex:"investBelong",
						align:"center"
					},{
						header:"土建投资归属",
						dataIndex:"civilInvestBelong",
						align:"center"
					},{
						header:"美化体投资归属",
						dataIndex:"bodycareInvestBelong",
						align:"center"
					},{
						header:"覆盖延伸投资归属",
						dataIndex:"fgysInvestBelong",
						align:"center",
						width:130
					},{
						header:"直放站投资归属",
						dataIndex:"repeaterInvestBelong",
						align:"center"
					},{
						header:"成本归属",
						dataIndex:"costBelong",
						align:"center"
					},{
						header:"批复日期",
						dataIndex:"replyDate",
						sortable: true,
						align:"center"
					},{
						header:"覆盖延伸MIS任务号",
						dataIndex:"fgysMisCode",
						align:"center",
						width:130
					},{
						header:"直放站MIS任务号",
						dataIndex:"repeaterMisCode",
						align:"center",
						width:130
					},{
						header:"动力配套MIS任务号",
						dataIndex:"horsePowerMisCode",
						align:"center",
						width:130
					}
				],
				viewConfig: {
					forceFit: false
				},
				bbar: new Ext.PagingToolbar({
					store: gridStore,
					pageSize: 20,
					displayInfo: true,
					beforePageText: "第",
					afterPageText: "/ {0}页",
					firstText: "首页",
					prevText: "上一页",
					nextText: "下一页",
					lastText: "末页",
					refreshText: "刷新",
					emptyMsg: "没有相关记录！",
					displayMsg: "当前显示第 {0} ~ {1} 条记录，总计 {2} 条记录",
					doLoad: function(start) {
					 	recordStart = start;
					 	this.store.load({params: {start: start, limit: this.pageSize}});
					}
				}),
				tbar: ["-",{
						text:'导出Excel',
						iconCls:'xls',
						menu:fgysMenu,
						handler:function(){
							var j=fgysMenu.items.getCount();
						    for(var i=2;i<j;i++){
							  fgysMenu.items.itemAt(i).disable();
						    }
						}
					},"-",{
						/*id:'h-fgys-areaid',
						xtype:'combo',
						mode:'local',
						displayField:'selectDisplay',
						valueField:'selectItem',
						readOnly:true,
						triggerAction:'all',
						store:new Ext.data.SimpleStore({
							fields:['selectItem','selectDisplay'],
							data:[
									['2','西湖'],
									['3','江干'],
									['4','武林'],
									['5','拱墅'],
									['6','滨江'],
									['7','下沙'],
									['8','余杭'],
									['9','富阳'],
									['10','萧山'],
									['11','桐庐'],
									['12','建德'],
									['13','淳安'],
									['14','临安']
								]
						}),
						listeners:{
							select : function(){
								grid.getStore().baseParams ={filter_LIKES_areaId:this.value};
								grid.getStore().load({params:{start: 0, limit: 20}});
							},
							change:function(){
								this.reset();
							}
						},
						emptyText:'请选择所属区域...'*/
					},"-",{
				    	id:'h-fgys-xiangmu',
						xtype:'combo',
						mode:'local',
						displayField:'selectDisplay',
						valueField:'selectItem',
						readOnly:true,
						triggerAction:'all',
						store:new Ext.data.SimpleStore({
							fields:['selectItem','selectDisplay'],
							data:[
									['bizNumber','项目编号'],
									['name','项目名称'],
									['siteNumber','站点编号'],
									['siteName','站点名称']
								]
						}),
						emptyText:'请选择查询类别...'
					},
					"-",
					{
						xtype: "textfield",
						id: "content"
					},
					"-",
					{
						text: "查询", 
						handler: function() {
							var selectValue=Ext.getCmp('h-fgys-xiangmu').getValue();
							var tf=Ext.getCmp('content'); 
							if(selectValue == "name"){
								grid.getStore().baseParams ={filter_LIKES_name:tf.getValue()};
							}else if(selectValue == "bizNumber"){ 
								grid.getStore().baseParams ={filter_LIKES_bizNumber:tf.getValue()};
							}else if(selectValue == "siteNumber"){
								grid.getStore().baseParams ={filter_LIKES_siteNumber:tf.getValue()};
							}else if(selectValue == "siteName"){
								grid.getStore().baseParams ={filter_LIKES_siteName:tf.getValue()};
							}
						    grid.getStore().load({params:{start: 0, limit: 20}});
						}
					},"-"
				],
				listeners:{
					rowdblclick:function(){
						var record=grid.getSelectionModel().getSelected();
						var id=record.get('id');
						var name=record.get('name');
						var fgysWin = new Ext.Window({
							title:'详细信息--'+name,
							width:800,
							height:400,
							autoScroll: true,
							resizable:true,
							//maximizable:true,//去除最大化按钮
							maximized:true,
							autoLoad:"../room/roomProject!view.action?id=" +id
						});
						fgysWin.show();
					}
				}
			});
			
			Ext.QuickTips.init();
			Ext.onReady(function() {
				gridStore.load({params: {start: 0, limit: 20}});
				new Ext.Viewport({
					layout: "border",
					border: false,
					items: [grid]
				});
			});
		--></script>
	</head>
	<body>
	</body>
</html>